//zed

print("*** start\n")

function times2(i)
    return i * 2
end

if (times2(4) == 8)
    print("OK - times2")
else 
    print("FAIL - times2")
end

fn times3(i) // fn alias and 2 lines in body
    var t = 3
    return t * i
end

if (times3(4) == 12)
    print("OK - times3")
else 
    print("FAIL - times3")
end

var times4 = function(i) return i * 4 end
if (times4(4) == 16)
    print("OK - times4")
else 
    print("FAIL - times4")
end

var arr = [function(i) return i * 5 end]
if (arr[0](4) == 20)
    print("OK - times5")
else 
    print("FAIL - times5")
end

print("\n*** end ");
